
rm -f usr/share/applications/xsane.desktop

echo '[Desktop Entry]
Encoding=UTF-8
Name=Xsane image scanner
Icon=/usr/share/pixmaps/puppy/scanner.svg
Comment=Xsane image scanner
Exec=xsaneshell
Terminal=false
Type=Application
Categories=X-Graphic-scanner
GenericName=Xsane image scanner
' > usr/share/applications/Xsane-image-scanner.desktop

#xsane puts up a warning msg at startup if running as root, remove it...
if [ -f usr/bin/xsane  ];then
  sed -i "s/getuid/getpid/g" usr/bin/xsane
fi

